<%--
  Created by IntelliJ IDEA.
  User: 邹敦宇
  Date: 2021/2/26
  Time: 11:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%
        String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";
    %>
    <base href="<%=basePath%>">
    <link rel="stylesheet" href="static/layui/css/layui.css">
    <style type="text/css">
        .layui-table-cell{
            text-align:center;
            height: auto;
            line-height: 50px;
        }
    </style>
</head>
<body>
<button class="layui-btn layui-btn-lg" id="add"><span class="layui-icon layui-icon-addition"></span>添加用户</button>

<table id="demo" lay-filter="test"></table>
<div id="test1"></div>


<%--模态框--%>
<div  id="model" style="display:none">
    <br>
    <form class="layui-form" action="">
        <input type="hidden" name="id" id="userid">
        <div class="layui-form-item">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-inline">
                <input type="text" name="username" required id="username"  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">密码框</label>
            <div class="layui-input-inline">
                <input type="password" name="password" required id="password" lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">头像：</label>
            <div class="layui-input-inline">
                <button type="button" name="file" class="layui-btn" id="file">
                    <i class="layui-icon">&#xe67c;</i>上传图片
                </button>
                <img id="img" width="50" height="50" style="border-radius: 50%;">
                <input type="hidden" name="imgUrl" id="imgUrl">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">选择框</label>
            <div class="layui-input-inline">
                <select name="type" lay-verify="required" id="type">
                    <option value="">请选择</option>
                    <option value="0">后台管理员</option>
                    <option value="1">前台用户</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>


<script src="static/js/jquery-3.5.1.min.js"></script>

<script src="static/layui/layui.js"></script>


<script src="static/js/user-list.js"></script>


</body>

</html>
